﻿#parse("partials/header.html") #parse("partials/sidebar.html")
<style type="text/css" media="all">
    div.dataTables_filter
    {
        display: none;
    }
    div.dataTables_length label
    {
        color: #fff;
    }
    .mws-table thead
    {
        border-top: 1px solid #ccc;
    }
    .row-align, .row-header th
    {
        text-align: center;
    }
</style>
<script type="text/javascript" src="/Scripts/SignalR/json2.min.js"></script>
<script type="text/javascript" src="/Scripts/SignalR/jquery.signalR.js"></script>
<script type="text/javascript" src="/signalr/hubs"></script>
<script type="text/javascript" language="javascript">
    var userId, cmd, oTable, dialogTitle, lnkMR, lnkMRHistories, totalRecords;
    var cmd;
    var oTable;
    var dialogTitle;
    var hucode = '${hucode}';
    var doctorid = '${docid}';
    var tabStatus = false;

    function InitDataTable(datatableId, lobid, servicename, keywordid, location, iscurrentlocation, islast) {
        var keywords = $('#' + keywordid).val();
        var columnname = iscurrentlocation == true ? "regtime" : "location";
        var columnformat = "";
        var lastdays = "7";
        oTable = $('#' + datatableId).dataTable({
            "bSort": false,
            "sPaginationType": "full_numbers",
            "bDeferRender": true,
            "bProcessing": true,
            "bAutoWidth": false,
            "bServerSide": true,
            "bRetreive": true,
            "bDestroy": true,
            "aoColumns": [
                            { "mDataProp": null, sClass: "row-align" },
                            { "mDataProp": "mrno", sClass: "row-align" },
                            { "mDataProp": "name" },
                            { "mDataProp": "age", sClass: "row-align" },
                            { "mDataProp": "gender", sClass: "row-align" },
                            { "mDataProp": columnname, sClass: "row-align" },
                            { "mDataProp": null, sClass: "row-align" },
                        ],
            "aoColumnDefs": [
        						{ "sWidth": "10%", "aTargets": [-1] },
                                {
                                    "fnRender": function (o) {
                                        lnkMR = "<a class='tooltip mws-ic-16 ic-clipboard-text' style='padding:0 8px;' title='View Patient Data' dialogtitle='Patient Data Form' href='${rooturl}patientdata/medicalrecord/viewpatientdata/?id=" + o.aData['patientid'] + "&cmd= view-detail-patient'></a>";
                                        lnkMRHistories = "<a class='tooltip mws-ic-16 ic-clipboard-sign' style='padding:0 8px;' title='Medical Record Histories' dialogtitle='Patient Data Form' href='${rooturl}patientdata/medicalrecord/viewpatientdata/?id=" + o.aData['patientid'] + "&cmd= view-detail-patient'></a>";
                                        //                                        if (islast == false) {
                                        //                                            lnkSend = "&nbsp;<a class='tooltip mws-ic-16 ic-envelope user-list' style='padding:0 8px;' title='Consulting Physician (Send)' dialogtitle='Consultating Form' href='javascript:void(0)' userid='" + o.aData['doctorid'] + "' cmd='send' ></a>";
                                        //                                            lnkReply = "&nbsp;<a class='tooltip mws-ic-16 ic-group user-list' style='padding:0 10px;' title='Consulting Physician (Reply)' dialogtitle='Consultating Form' href='javascript:void(0)' userid='" + o.aData['doctorid'] + "' cmd='reply' ></a>";
                                        //                                        } else {
                                        //                                            lnkSend = "";
                                        //                                            lnkReply = "";
                                        //                                        }

                                        return lnkMR + lnkMRHistories;
                                    },
                                    "aTargets": [0]
                                },
                                {
                                    "fnRender": function (o) {
                                        return getWorklistAge(new Date(moment(moment(o.aData['age']).valueOf())));
                                    },
                                    "aTargets": [3]
                                },
                                {
                                    "fnRender": function (o) {
                                        if (iscurrentlocation == true)
                                            columnformat = jsonToDateTime(o.aData['regtime'], '');
                                        else
                                            columnformat = o.aData['location'];
                                        return columnformat;
                                    },
                                    "aTargets": [5]
                                }
                            ],
            "fnServerData": function (sSource, aoData, fnCallback) {
                jQuery.ajax({
                    "dataType": 'json',
                    "type": "GET",
                    "url": "/physician/doctorworklist/tableworklist?docid=" + doctorid + "&lobid=" + lobid + "&patientid=&regtime=&keywords=" + keywords + "&location=" + location + "&servicename=" + servicename
                    , "data": aoData,
                    "success": function (data) {
                        switch (datatableId) {
                            case "tablelist-etc-untreated": $("#count-untreated-etc").text(" (" + data['iTotalRecords'] + ")"); break;
                            case "tablelist-opd-untreated": $("#count-untreated-opd").text(" (" + data['iTotalRecords'] + ")"); break;
                            case "tablelist-mcu-untreated": $("#count-untreated-mcu").text(" (" + data['iTotalRecords'] + ")"); break;
                            case "tablelist-ipd-untreated": $("#count-untreated-ipd").text(" (" + data['iTotalRecords'] + ")"); break;
                            case "tablelist-etc-last": $("#count-last-etc").text(" (" + data['iTotalRecords'] + ")"); break;
                            case "tablelist-opd-last": $("#count-last-opd").text(" (" + data['iTotalRecords'] + ")"); break;
                            case "tablelist-mcu-last": $("#count-last-mcu").text(" (" + data['iTotalRecords'] + ")"); break;
                            case "tablelist-ipd-last": $("#count-last-ipd").text(" (" + data['iTotalRecords'] + ")"); break;
                            //case "tablelist-etc-untreated": $("#count-untreated-etc").text("(" + data['iTotalRecords'] + ")"); break;               
                            //case "tablelist-etc-untreated": $("#count-untreated-etc").text("(" + data['iTotalRecords'] + ")"); break;               
                        }
                        if (datatableId == 'tablelist-etc-untreated') {
                            totalRecords = data['iTotalRecords'];
                            if (totalRecords == 0) {
                                if (tabStatus == false) {
                                    tabStatus = true;
                                    $('.jump').trigger('click');
                                }
                            }
                        }
                        fnCallback(data);
                    }
                });
            },
            //            "fnRowCallback": function (nRow, aData, iDisplayIndex) {
            //                $("td:first", nRow).html(iDisplayIndex + 1);
            //                return nRow;
            //            },
            "sAjaxSource": "/physician/doctorworklist/tableworklist?docid=" + doctorid + "&lobid=" + lobid + "&patientid=&regtime=&keywords=" + keywords + "&location=" + location + "&servicename=" + servicename
        }).fnSetFilteringPressEnter();
    }

    $(function () {
        var opdConnection = jQuery.connection.opdHub;
        opdConnection.setWorklistopdDoctor = function (message) {
            var criteria = message.split("&");
            //criteria[0] = lob id;
            //criteria[4] = Hospital Unit Code
            //criteria[5] = lob code

            RefreshTable('tablelist-' + criteria[5] + '-untreated', criteria[0], doctorid, criteria[3], criteria[4], false);
        };
        jQuery.connection.hub.start();
    });

    function RefreshTable(datatableId, lobid, docid, regtime, location) {
        jQuery.getJSON(
                "/physician/doctorworklist/tableworklist?docid=" + docid + "&lobid=" + lobid + "&patientid=&regtime=" + regtime + "&keywords=&location=" + location + "&servicename=1",
                null,
                function (json) {
                    table = $(datatableId).dataTable();
                    oSettings = table.fnSettings();

                    table.fnClearTable(this);

                    for (var i = 0; i < json.aaData.length; i++) {
                        table.oApi._fnAddData(oSettings, json.aaData[i]);
                    }

                    oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
                    table.fnDraw();
                });
    }

    function runMethod(tabindex, id, lobid, location) {
        switch (tabindex) {
            case 0:
                jQuery('#btnSearchUntreated' + id).click(function () { InitDataTable('tablelist-' + id + '-untreated', lobid, '1', 'txtKeywordsUntreated' + id, hucode, true, false); });
                InitDataTable('tablelist-' + id + '-untreated', lobid, '1', 'txtKeywordsUntreated' + id, location, true, false);
                break;

            case 1:
                jQuery('#btnSearchLast' + id).click(function () { InitDataTable('tablelist-' + id + '-last', lobid, '2', 'txtKeywordsLast' + id, hucode, true, true); });
                InitDataTable('tablelist-' + id + '-last', lobid, '2', 'txtKeywordsLast' + id, location, true, true);
                break;
        }
    }

    function runMethodOther(tabindex, location) {
        switch (tabindex) {
            case 0:
                jQuery('#btnSearchetc').click(function () { InitDataTable('tablelist-etc-other', '1', '1', 'txtKeywordsetc', location, false, true); });
                InitDataTable('tablelist-etc-other', '1', '1', 'txtKeywordsetc', location, false, true);
                break;
            case 1:
                jQuery('#btnSearchopd').click(function () { InitDataTable('tablelist-opd-other', '2', '1', 'txtKeywordsopd', location, false, true); });
                InitDataTable('tablelist-opd-other', '2', '1', 'txtKeywordsopd', location, false, true);
                break;
            case 2:
                jQuery('#btnSearchmcu').click(function () { InitDataTable('tablelist-mcu-other', '3', '1', 'txtKeywordsmcu', location, false, true); });
                InitDataTable('tablelist-mcu-other', '3', '1', 'txtKeywordsmcu', location, false, true);
                break;
            case 4:
                jQuery('#btnSearchipd').click(function () { InitDataTable('tablelist-ipd-other', '4', '1', 'txtKeywordsipd', location, false, true); });
                InitDataTable('tablelist-ipd-other', '4', '1', 'txtKeywordsipd', location, false, true);
                break;
        }
    }


    jQuery(document).ready(function () {
        $('.jump').click(function () {
            $('#mws-tabs-worklist').tabs().tabs('select', 1);
        })
        //Add event click on list doctor
        $(".user-list").live('click', function (event) {
            userId = $(this).attr("userid");
            cmd = $(this).attr("cmd");
            dialogTitle = $(this).attr("dialogtitle");
            var dialogWidth = "";
            var dialogHeight = "";

            if (cmd == "send") {
                dialogWidth = "700";
                dialogHeight = "399";
                iframeSource = "${rooturl}physician/doctorworklist/sendconsultation/?id=" + userId + "&cmd=" + cmd;
            }

            if (cmd == "reply") {
                dialogWidth = "700";
                dialogHeight = "661";
                iframeSource = "${rooturl}physician/doctorworklist/replyconsultation/?id=" + userId + "&cmd=" + cmd;
            }

            $("#mws-worklist-dialog").dialog({
                modal: true,
                width: dialogWidth,
                height: dialogHeight,
                zIndex: "9999",
                title: dialogTitle,
                draggable: false,
                resizable: false
            });

            $("#modalForm").attr("src", iframeSource);
        });

        $("#mws-tabs-worklist-other").tabs({
            show: function (e, ui) {
                var oTable = $('div.dataTables_scrollBody>table.display', ui.panel).dataTable();
                if (oTable.length > 0) {
                    oTable.fnAdjustColumnSizing();
                }
                runMethodOther(ui.index, hucode);
            }
        });
        $("#mws-tabs-worklist").tabs({
            show: function (e, ui) {
                switch (ui.index) {
                    case 0:
                        $("#mws-tabs-etc").tabs({
                            show: function (e, ui) {
                                var thistab = ui;
                                runMethod(thistab.index, 'etc', '1', hucode);
                            }
                        });
                        break;

                    case 1:
                        $("#mws-tabs-opd").tabs({
                            show: function (e, ui) {
                                var thistab = ui;
                                runMethod(thistab.index, 'opd', '2', hucode);
                            }
                        });
                        break;
                    case 2:
                        $("#mws-tabs-mcu").tabs({
                            show: function (e, ui) {
                                var thistab = ui;
                                runMethod(thistab.index, 'mcu', '3', hucode);
                            }
                        });
                        break;
                    case 4:
                        $("#mws-tabs-ipd").tabs({
                            show: function (e, ui) {
                                var thistab = ui;
                                runMethod(thistab.index, 'ipd', '4', hucode);
                            }
                        });
                        break;
                }
            }
        });

    });    
</script>
<!--mws-container Start-->
<!-- Main Container Start -->
<div id="mws-container" class="clearfix">
    <!-- Inner Container Start -->
    <div class="container">
        <!-- Panels Start -->
        <div class="mws-panel grid_8 mws-collapsible">
            <div class="title-caption">
                <h5>
                    $headerinformation - OPD - Physician</h5>
            </div>
            <div class="mws-panel-header">
                <span class="mws-i-24 i-list">Current Location</span>
            </div>
            <div class="mws-panel-body">
                <a href="#" class="jump" style="display: none;"></a>
                <div class="mws-panel-content">
                    <div id="mws-tabs-worklist">
                        <ul>
                            <li><a href="#tab-etc">Emergency & Trauma Center</a></li>
                            <li><a href="#tab-opd">Out Patient Department</a></li>
                            <li><a href="#tab-mcu">Medical Check Up</a></li>
                            <li><a href="#tab-procedure">Procedure</a></li>
                            <li><a href="#tab-ipd">In Patient Department</a></li>
                        </ul>
                        <!--etc-->
                        <div id="tab-etc">
                            <div id="mws-tabs-etc">
                                <ul>
                                    <li><a href="#tab-untreated-etc" class="etc-untreated">Untreated<span id="count-untreated-etc"></span></a></li>
                                    <li><a href="#tab-last-etc" class="etc-last">Last 7 Days<span id="count-last-etc"></span></a></li>
                                </ul>
                                <div id="tab-untreated-etc">
                                    <div class="mws-form">
                                        <div class="mws-form-inline">
                                            <div class="mws-form-row">
                                                <div class="mws-form-cols clearfix">
                                                    <div class="mws-form-col-3-8 alpha">
                                                        <div class="mws-form-item">
                                                            <input id="txtKeywordsUntreatedetc" type="text" class="mws-textinput" placeholder="Enter Keywords Here" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <br />
                                        <div class="mws-button-row">
                                            <input id="btnSearchUntreatedetc" type="submit" value="Search" class="mws-button red" />
                                        </div>
                                    </div>
                                    <table cellpadding="0" cellspacing="0" border="0" class="mws-table" id="tablelist-etc-untreated"
                                        width="100%">
                                        <thead>
                                            <tr class="row-header">
                                                <th>
                                                    Actions
                                                </th>
                                                <th>
                                                    MR No
                                                </th>
                                                <th>
                                                    Patient Name
                                                </th>
                                                <th>
                                                    Age
                                                </th>
                                                <th>
                                                    Gender
                                                </th>
                                                <th>
                                                    Registration Date
                                                </th>
                                                <th>
                                                    Status
                                                </th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        </tbody>
                                    </table>
                                </div>
                                <div id="tab-last-etc">
                                    <div class="mws-form">
                                        <div class="mws-form-inline">
                                            <div class="mws-form-row">
                                                <div class="mws-form-cols clearfix">
                                                    <div class="mws-form-col-3-8 alpha">
                                                        <div class="mws-form-item">
                                                            <input id="txtKeywordsLastetc" type="text" class="mws-textinput" placeholder="Enter Keywords Here" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <br />
                                        <div class="mws-button-row">
                                            <input id="btnSearchLastetc" type="submit" value="Search" class="mws-button red" />
                                        </div>
                                    </div>
                                    <table cellpadding="0" cellspacing="0" border="0" class="mws-table" id="tablelist-etc-last"
                                        width="100%">
                                        <thead>
                                            <tr class="row-header">
                                                <th>
                                                    Actions
                                                </th>
                                                <th>
                                                    MR No
                                                </th>
                                                <th>
                                                    Patient Name
                                                </th>
                                                <th>
                                                    Age
                                                </th>
                                                <th>
                                                    Gender
                                                </th>
                                                <th>
                                                    Registration Date
                                                </th>
                                                <th>
                                                    Status
                                                </th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <!--opd-->
                        <div id="tab-opd">
                            <div id="mws-tabs-opd">
                                <ul>
                                    <li><a href="#tab-untreated-opd">Untreated<span id="count-untreated-opd"></span></a></li>
                                    <li><a href="#tab-last-opd">Last 7 Days<span id="count-last-opd"></span></a></li>
                                </ul>
                                <div id="tab-untreated-opd">
                                    <div class="mws-form">
                                        <div class="mws-form-inline">
                                            <div class="mws-form-row">
                                                <div class="mws-form-cols clearfix">
                                                    <div class="mws-form-col-3-8 alpha">
                                                        <div class="mws-form-item">
                                                            <input id="txtKeywordsUntreatedopd" type="text" class="mws-textinput" placeholder="Enter Keywords Here" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <br />
                                        <div class="mws-button-row">
                                            <input id="btnSearchUntreatedopd" type="submit" value="Search" class="mws-button red" />
                                        </div>
                                    </div>
                                    <table cellpadding="0" cellspacing="0" border="0" class="mws-table" id="tablelist-opd-untreated"
                                        width="100%">
                                        <thead>
                                            <tr class="row-header">
                                                <th>
                                                    Actions
                                                </th>
                                                <th>
                                                    MR No
                                                </th>
                                                <th>
                                                    Patient Name
                                                </th>
                                                <th>
                                                    Age
                                                </th>
                                                <th>
                                                    Gender
                                                </th>
                                                <th>
                                                    Registration Date
                                                </th>
                                                <th>
                                                    Status
                                                </th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        </tbody>
                                    </table>
                                </div>
                                <div id="tab-last-opd">
                                    <div class="mws-form">
                                        <div class="mws-form-inline">
                                            <div class="mws-form-row">
                                                <div class="mws-form-cols clearfix">
                                                    <div class="mws-form-col-3-8 alpha">
                                                        <div class="mws-form-item">
                                                            <input id="txtKeywordsLastopd" type="text" class="mws-textinput" placeholder="Enter Keywords Here" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <br />
                                        <div class="mws-button-row">
                                            <input id="btnSearchLastopd" type="submit" value="Search" class="mws-button red" />
                                        </div>
                                    </div>
                                    <table cellpadding="0" cellspacing="0" border="0" class="mws-table" id="tablelist-opd-last"
                                        width="100%">
                                        <thead>
                                            <tr class="row-header">
                                                <th>
                                                    Actions
                                                </th>
                                                <th>
                                                    MR No
                                                </th>
                                                <th>
                                                    Patient Name
                                                </th>
                                                <th>
                                                    Age
                                                </th>
                                                <th>
                                                    Gender
                                                </th>
                                                <th>
                                                    Registration Date
                                                </th>
                                                <th>
                                                    Status
                                                </th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <!--mcu-->
                        <div id="tab-mcu">
                            <div id="mws-tabs-mcu">
                                <ul>
                                    <li><a href="#tab-untreated-mcu">Untreated<span id="count-untreated-mcu"></span></a></li>
                                    <li><a href="#tab-last-mcu">Last 7 Days<span id="count-last-mcu"></span></a></li>
                                </ul>
                                <div id="tab-untreated-mcu">
                                    <div class="mws-form">
                                        <div class="mws-form-inline">
                                            <div class="mws-form-row">
                                                <div class="mws-form-cols clearfix">
                                                    <div class="mws-form-col-3-8 alpha">
                                                        <div class="mws-form-item">
                                                            <input id="txtKeywordsUntreatedmcu" type="text" class="mws-textinput" placeholder="Enter Keywords Here" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <br />
                                        <div class="mws-button-row">
                                            <input id="btnSearchUntreatedmcu" type="submit" value="Search" class="mws-button red" />
                                        </div>
                                    </div>
                                    <table cellpadding="0" cellspacing="0" border="0" class="mws-table" id="tablelist-mcu-untreated"
                                        width="100%">
                                        <thead>
                                            <tr class="row-header">
                                                <th>
                                                    Actions
                                                </th>
                                                <th>
                                                    MR No
                                                </th>
                                                <th>
                                                    Patient Name
                                                </th>
                                                <th>
                                                    Age
                                                </th>
                                                <th>
                                                    Gender
                                                </th>
                                                <th>
                                                    Registration Date
                                                </th>
                                                <th>
                                                    Status
                                                </th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        </tbody>
                                    </table>
                                </div>
                                <div id="tab-last-mcu">
                                    <div class="mws-form">
                                        <div class="mws-form-inline">
                                            <div class="mws-form-row">
                                                <div class="mws-form-cols clearfix">
                                                    <div class="mws-form-col-3-8 alpha">
                                                        <div class="mws-form-item">
                                                            <input id="txtKeywordsLastmcu" type="text" class="mws-textinput" placeholder="Enter Keywords Here" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <br />
                                        <div class="mws-button-row">
                                            <input id="btnSearchLastmcu" type="submit" value="Search" class="mws-button red" />
                                        </div>
                                    </div>
                                    <table cellpadding="0" cellspacing="0" border="0" class="mws-table" id="tablelist-mcu-last"
                                        width="100%">
                                        <thead>
                                            <tr class="row-header">
                                                <th>
                                                    Actions
                                                </th>
                                                <th>
                                                    MR No
                                                </th>
                                                <th>
                                                    Patient Name
                                                </th>
                                                <th>
                                                    Age
                                                </th>
                                                <th>
                                                    Gender
                                                </th>
                                                <th>
                                                    Registration Date
                                                </th>
                                                <th>
                                                    Status
                                                </th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <!--Procedure-->
                        <div id="tab-procedure">
                            <div id="mws-tabs-procedure">
                                <ul>
                                    <li><a href="#tab-untreated-procedure">Untreated<span id="count-untreated-procedure"></span></a></li>
                                    <li><a href="#tab-last-procedure">Last 7 Days<span id="count-last-procedure"></span></a></li>
                                </ul>
                                <div id="tab-untreated-procedure">
                                    <div class="mws-form">
                                        <div class="mws-form-inline">
                                            <div class="mws-form-row">
                                                <div class="mws-form-cols clearfix">
                                                    <div class="mws-form-col-3-8 alpha">
                                                        <div class="mws-form-item">
                                                            <input id="txtKeywordsUntreatedprocedure" type="text" class="mws-textinput" placeholder="Enter Keywords Here" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <br />
                                        <div class="mws-button-row">
                                            <input id="btnSearchUntreatedprocedure" type="submit" value="Search" class="mws-button red" />
                                        </div>
                                    </div>
                                    <table cellpadding="0" cellspacing="0" border="0" class="mws-table" id="tablelist-procedure-untreated"
                                        width="100%">
                                        <thead>
                                            <tr class="row-header">
                                                <th>
                                                    Actions
                                                </th>
                                                <th>
                                                    MR No
                                                </th>
                                                <th>
                                                    Patient Name
                                                </th>
                                                <th>
                                                    Age
                                                </th>
                                                <th>
                                                    Gender
                                                </th>
                                                <th>
                                                    Registration Date
                                                </th>
                                                <th>
                                                    Status
                                                </th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        </tbody>
                                    </table>
                                </div>
                                <div id="tab-last-procedure">
                                    <div class="mws-form">
                                        <div class="mws-form-inline">
                                            <div class="mws-form-row">
                                                <div class="mws-form-cols clearfix">
                                                    <div class="mws-form-col-3-8 alpha">
                                                        <div class="mws-form-item">
                                                            <input id="txtKeywordsLastprocedure" type="text" class="mws-textinput" placeholder="Enter Keywords Here" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <br />
                                        <div class="mws-button-row">
                                            <input id="btnSearchLastprocedure" type="submit" value="Search" class="mws-button red" />
                                        </div>
                                    </div>
                                    <table cellpadding="0" cellspacing="0" border="0" class="mws-table" id="tablelist-procedure-last"
                                        width="100%">
                                        <thead>
                                            <tr class="row-header">
                                                <th>
                                                    Actions
                                                </th>
                                                <th>
                                                    MR No
                                                </th>
                                                <th>
                                                    Patient Name
                                                </th>
                                                <th>
                                                    Age
                                                </th>
                                                <th>
                                                    Gender
                                                </th>
                                                <th>
                                                    Registration Date
                                                </th>
                                                <th>
                                                    Location
                                                </th>
                                                <th>
                                                    Status
                                                </th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <!--ipd-->
                        <div id="tab-ipd">
                            <div id="mws-tabs-ipd">
                                <ul>
                                    <li><a href="#tab-untreated-ipd">Untreated<span id="count-untreated-ipd"></span></a></li>
                                    <li><a href="#tab-last-ipd">Last 7 Days<span id="count-last-ipd"></span></a></li>
                                </ul>
                                <div id="tab-untreated-ipd">
                                    <div class="mws-form">
                                        <div class="mws-form-inline">
                                            <div class="mws-form-row">
                                                <div class="mws-form-cols clearfix">
                                                    <div class="mws-form-col-3-8 alpha">
                                                        <div class="mws-form-item">
                                                            <input id="txtKeywordsUntreatedipd" type="text" class="mws-textinput" placeholder="Enter Keywords Here" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <br />
                                        <div class="mws-button-row">
                                            <input id="btnSearchUntreatedipd" type="submit" value="Search" class="mws-button red" />
                                        </div>
                                    </div>
                                    <table cellpadding="0" cellspacing="0" border="0" class="mws-table" id="tablelist-ipd-untreated"
                                        width="100%">
                                        <thead>
                                            <tr class="row-header">
                                                <th>
                                                    Actions
                                                </th>
                                                <th>
                                                    MR No
                                                </th>
                                                <th>
                                                    Patient Name
                                                </th>
                                                <th>
                                                    Age
                                                </th>
                                                <th>
                                                    Gender
                                                </th>
                                                <th>
                                                    Registration Date
                                                </th>
                                                <th>
                                                    Status
                                                </th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        </tbody>
                                    </table>
                                </div>
                                <div id="tab-last-ipd">
                                    <div class="mws-form">
                                        <div class="mws-form-inline">
                                            <div class="mws-form-row">
                                                <div class="mws-form-cols clearfix">
                                                    <div class="mws-form-col-3-8 alpha">
                                                        <div class="mws-form-item">
                                                            <input id="txtKeywordsLastipd" type="text" class="mws-textinput" placeholder="Enter Keywords Here" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <br />
                                        <div class="mws-button-row">
                                            <input id="btnSearchLastipd" type="submit" value="Search" class="mws-button red" />
                                        </div>
                                    </div>
                                    <table cellpadding="0" cellspacing="0" border="0" class="mws-table" id="tablelist-ipd-last"
                                        width="100%">
                                        <thead>
                                            <tr class="row-header">
                                                <th>
                                                    Actions
                                                </th>
                                                <th>
                                                    MR No
                                                </th>
                                                <th>
                                                    Patient Name
                                                </th>
                                                <th>
                                                    Age
                                                </th>
                                                <th>
                                                    Gender
                                                </th>
                                                <th>
                                                    Registration Date
                                                </th>
                                                <th>
                                                    Status
                                                </th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="mws-panel grid_8 mws-collapsible">
            <div class="mws-panel-header">
                <span class="mws-i-24 i-list">Other Location</span>
            </div>
            <div class="mws-panel-body">
                <div class="mws-panel-content">
                    <div id="mws-tabs-worklist-other">
                        <ul>
                            <li><a href="#tab-etc-other">Emergency & Trauma Center</a></li>
                            <li><a href="#tab-opd-other">Out Patient Department</a></li>
                            <li><a href="#tab-mcu-other">Medical Check Up</a></li>
                            <li><a href="#tab-procedure-other">Procedure</a></li>
                            <li><a href="#tab-ipd-other">In Patient Department</a></li>
                        </ul>
                        <!--etc-->
                        <div id="tab-etc-other">
                            <div class="mws-form">
                                <div class="mws-form-inline">
                                    <div class="mws-form-row">
                                        <div class="mws-form-cols clearfix">
                                            <div class="mws-form-col-3-8 alpha">
                                                <div class="mws-form-item">
                                                    <input id="txtKeywordsetc" type="text" class="mws-textinput" placeholder="Enter Keywords Here" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                <div class="mws-button-row">
                                    <input id="btnSearchetc" type="submit" value="Search" class="mws-button red" />
                                </div>
                            </div>
                            <table cellpadding="0" cellspacing="0" border="0" class="mws-table" id="tablelist-etc-other"
                                width="100%">
                                <thead>
                                    <tr class="row-header">
                                        <th>
                                            Actions
                                        </th>
                                        <th>
                                            MR No
                                        </th>
                                        <th>
                                            Patient Name
                                        </th>
                                        <th>
                                            Age
                                        </th>
                                        <th>
                                            Gender
                                        </th>
                                        <th>
                                            Location
                                        </th>
                                        <th>
                                            Status
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>
                        </div>
                        <!--opd-->
                        <div id="tab-opd-other">
                            <div class="mws-form">
                                <div class="mws-form-inline">
                                    <div class="mws-form-row">
                                        <div class="mws-form-cols clearfix">
                                            <div class="mws-form-col-3-8 alpha">
                                                <div class="mws-form-item">
                                                    <input id="txtKeywordsopd" type="text" class="mws-textinput" placeholder="Enter Keywords Here" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                <div class="mws-button-row">
                                    <input id="btnSearchopd" type="submit" value="Search" class="mws-button red" />
                                </div>
                            </div>
                            <table cellpadding="0" cellspacing="0" border="0" class="mws-table" id="tablelist-opd-other"
                                width="100%">
                                <thead>
                                    <tr class="row-header">
                                        <th>
                                            Actions
                                        </th>
                                        <th>
                                            MR No
                                        </th>
                                        <th>
                                            Patient Name
                                        </th>
                                        <th>
                                            Age
                                        </th>
                                        <th>
                                            Gender
                                        </th>
                                        <th>
                                            Location
                                        </th>
                                        <th>
                                            Status
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>
                        </div>
                        <!--mcu-->
                        <div id="tab-mcu-other">
                            <div class="mws-form">
                                <div class="mws-form-inline">
                                    <div class="mws-form-row">
                                        <div class="mws-form-cols clearfix">
                                            <div class="mws-form-col-3-8 alpha">
                                                <div class="mws-form-item">
                                                    <input id="txtKeywordsmcu" type="text" class="mws-textinput" placeholder="Enter Keywords Here" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                <div class="mws-button-row">
                                    <input id="btnSearchmcu" type="submit" value="Search" class="mws-button red" />
                                </div>
                            </div>
                            <table cellpadding="0" cellspacing="0" border="0" class="mws-table" id="tablelist-mcu-other"
                                width="100%">
                                <thead>
                                    <tr class="row-header">
                                        <th>
                                            Actions
                                        </th>
                                        <th>
                                            MR No
                                        </th>
                                        <th>
                                            Patient Name
                                        </th>
                                        <th>
                                            Age
                                        </th>
                                        <th>
                                            Gender
                                        </th>
                                        <th>
                                            Location
                                        </th>
                                        <th>
                                            Status
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>
                        </div>
                        <!--Procedure-->
                        <div id="tab-procedure-other">
                            <div class="mws-form">
                                <div class="mws-form-inline">
                                    <div class="mws-form-row">
                                        <div class="mws-form-cols clearfix">
                                            <div class="mws-form-col-3-8 alpha">
                                                <div class="mws-form-item">
                                                    <input id="txtKeywordsprocedure" type="text" class="mws-textinput" placeholder="Enter Keywords Here" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                <div class="mws-button-row">
                                    <input id="btnSearchprocedure" type="submit" value="Search" class="mws-button red" />
                                </div>
                            </div>
                            <table cellpadding="0" cellspacing="0" border="0" class="mws-table" id="tablelist-procedure-other"
                                width="100%">
                                <thead>
                                    <tr class="row-header">
                                        <th>
                                            Actions
                                        </th>
                                        <th>
                                            MR No
                                        </th>
                                        <th>
                                            Patient Name
                                        </th>
                                        <th>
                                            Age
                                        </th>
                                        <th>
                                            Gender
                                        </th>
                                        <th>
                                            Location
                                        </th>
                                        <th>
                                            Status
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>
                        </div>
                        <!--ipd-->
                        <div id="tab-ipd-other">
                            <div class="mws-form">
                                <div class="mws-form-inline">
                                    <div class="mws-form-row">
                                        <div class="mws-form-cols clearfix">
                                            <div class="mws-form-col-3-8 alpha">
                                                <div class="mws-form-item">
                                                    <input id="Text1" type="text" class="mws-textinput" placeholder="Enter Keywords Here" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                <div class="mws-button-row">
                                    <input id="Submit1" type="submit" value="Search" class="mws-button red" />
                                </div>
                            </div>
                            <table cellpadding="0" cellspacing="0" border="0" class="mws-table" id="tablelist-ipd-other"
                                width="100%">
                                <thead>
                                    <tr class="row-header">
                                        <th>
                                            Actions
                                        </th>
                                        <th>
                                            MR No
                                        </th>
                                        <th>
                                            Patient Name
                                        </th>
                                        <th>
                                            Age
                                        </th>
                                        <th>
                                            Gender
                                        </th>
                                        <th>
                                            Location
                                        </th>
                                        <th>
                                            Status
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <!-- Panels End -->
        </div>
        <!--PopupForm-->
        <div id="mws-worklist-dialog">
            <iframe id="modalForm" width="100%" height="100%" marginwidth="0" marginheight="0"
                frameborder="0" scrolling="auto">Your browser does not support</iframe>
        </div>
        <!-- Inner Container End -->
#parse("partials/footer.html")